package cc.customer.rabbit.domain;

import cc.customer.common.utils.DateUtil;
import cc.customer.common.utils.Utils;

import javax.persistence.*;
import java.io.Serializable;

@Table(name = "c_conv_notice")
public class CconvNotice implements Serializable {

    private static final long serialVersionUID = 1120919489379006143L;
    
    @Id
    @Column(name = "c_conv_id")
    private Integer cConvId;

    /**
     * websoketSession
     */
    @Column(name = "c_conv_session")
    private String cConvSession ;

    /**
     * 1:个人，2部门3，月报 4,56789 待用
     */
    @Column(name = "c_conv_type")
    private String cConvType;

    /**
     * 推送标题
     */
    @Column(name = "c_conv_title")
    private String cConvTitle;

    /**
     * 部门推送
     */
    @Column(name = "c_conv_dept")
    private String cConvDept;

    /**
     * 接收人员
     */
    @Column(name = "c_conv_users")
    private String cConvUsers;

    /**
     * 1：返回回掉完成,针对请求会话
     */
    @Column(name = "c_conv_status")
    private String cConvStatus = "0";

    @Column(name = "c_conv_time")
    private String cConvTime = DateUtil.getCurrentDate("yyyy-MM-dd HH:mm:ss");

    /**
     * 推送内容
     */
    @Column(name = "c_conv_cont")
    private String cConvCont;

    /**
     * 操作人
     */
    @Column(name = "c_conv_creator")
    private String cConvCreator;

    @Transient
    private String cConvCreatName;
    /**
     * 推送类型
     */
    @Column(name = "c_conv_ntype")
    private String cConvNType;

    /**
     * @return c_conv_id
     */
    public Integer getcConvId() {
        return cConvId;
    }

    /**
     * @param cConvId
     */
    public void setcConvId(Integer cConvId) {
        this.cConvId = cConvId;
    }

    /**
     * 获取websoketSession
     *
     * @return c_conv_session - websoketSession
     */
    public String getcConvSession() {
        return cConvSession;
    }

    /**
     * 设置websoketSession
     *
     * @param cConvSession websoketSession
     */
    public void setcConvSession(String cConvSession) {
        this.cConvSession = cConvSession == null ? null : cConvSession.trim();
    }

    /**
     * 获取1:个人，2部门3，月报 4,56789 待用
     *
     * @return c_conv_type - 1:个人，2部门3，月报 4,56789 待用
     */
    public String getcConvType() {
        return cConvType;
    }

    /**
     * 设置1:个人，2部门3，月报 4,56789 待用
     *
     * @param cConvType 1:个人，2部门3，月报 4,56789 待用
     */
    public void setcConvType(String cConvType) {
        this.cConvType = cConvType == null ? null : cConvType.trim();
    }

    /**
     * 获取推送标题
     *
     * @return c_conv_title - 推送标题
     */
    public String getcConvTitle() {
        return cConvTitle;
    }

    /**
     * 设置推送标题
     *
     * @param cConvTitle 推送标题
     */
    public void setcConvTitle(String cConvTitle) {
        this.cConvTitle = cConvTitle == null ? null : cConvTitle.trim();
    }

    /**
     * 获取部门推送
     *
     * @return c_conv_dept - 部门推送
     */
    public String getcConvDept() {
        return cConvDept;
    }

    /**
     * 设置部门推送
     *
     * @param cConvDept 部门推送
     */
    public void setcConvDept(String cConvDept) {
        this.cConvDept = cConvDept == null ? null : cConvDept.trim();
    }

    /**
     * 获取接收人员
     *
     * @return c_conv_users - 接收人员
     */
    public String getcConvUsers() {
        return cConvUsers;
    }

    /**
     * 设置接收人员
     *
     * @param cConvUsers 接收人员
     */
    public void setcConvUsers(String cConvUsers) {
        this.cConvUsers = cConvUsers == null ? null : cConvUsers.trim();
    }

    /**
     * 获取1：返回回掉完成,针对请求会话
     *
     * @return c_conv_status - 1：返回回掉完成,针对请求会话
     */
    public String getcConvStatus() {
        return cConvStatus;
    }

    /**
     * 设置1：返回回掉完成,针对请求会话
     *
     * @param cConvStatus 1：返回回掉完成,针对请求会话
     */
    public void setcConvStatus(String cConvStatus) {
        this.cConvStatus = cConvStatus == null ? null : cConvStatus.trim();
    }

    /**
     * @return c_conv_time
     */
    public String getcConvTime() {
        return cConvTime;
    }

    /**
     * @param cConvTime
     */
    public void setcConvTime(String cConvTime) {
        this.cConvTime = cConvTime;
    }

    /**
     * 获取推送内容
     *
     * @return c_conv_cont - 推送内容
     */
    public String getcConvCont() {
        return cConvCont;
    }

    /**
     * 设置推送内容
     *
     * @param cConvCont 推送内容
     */
    public void setcConvCont(String cConvCont) {
        this.cConvCont = cConvCont == null ? null : cConvCont.trim();
    }

    public String getcConvCreator() {
        return cConvCreator;
    }

    public void setcConvCreator(String cConvCreator) {
        this.cConvCreator = cConvCreator;
    }

    public String getcConvCreatName() {
        return cConvCreatName;
    }

    public void setcConvCreatName(String cConvCreatName) {
        this.cConvCreatName = cConvCreatName;
    }

    public String getcConvNType() {
        return cConvNType;
    }

    public void setcConvNType(String cConvNType) {
        this.cConvNType = cConvNType;
    }
}